import { FC } from "react"

import { SFormItem } from "@/components/common"
import StyleSelect from "@/components/common/styleSelect"
import { useLocale } from "@/locales"

//银行/币种
export const BankCurrecySelector: FC<any> = props => {
	const { rules, disable, labelProps, selectorProps } = props
	const { formatMessage } = useLocale()
	const options = [{ label: "CNY", value: "CNY" }]
	return (
		<SFormItem name="currency" label={formatMessage({ id: "label.system_currency" })} rules={rules} {...labelProps}>
			<StyleSelect
				placeholder={formatMessage({ id: "label.select_all" })}
				allowClear
				options={options}
				disable={disable}
				{...selectorProps}
			/>
		</SFormItem>
	)
}
